# unit of work
# see http://www.sqlalchemy.org/docs/04/ormtutorial.html

# DB = Sequel.sqlite :echo => true
graph = Sequel::Graph.new('sqlite:/', :echo => true)

users_table = graph.add_table :users do
  primary_key :id
  text :name
  text :fullname
  text :password
end

graph.create_all

class User < Sequel::Model
end

graph.map User

ed_user = User.new(:name => 'ed', :fullname => 'Ed Jones', :password => 'edspassword')

ed_user.name #=> 'ed'
ed_user.id #=> nil

